<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>人员信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="7113684">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "7113684";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("user.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建人员信息"
  			,"inport":"导入人员信息"
  			,"update":"修改人员信息"
  			,"detail":"人员信息详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#userForm").form({
		"":function(){}
		,"srvUser.suId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvUser.suHost":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(!false && $("input[name='srvUser.suHost']:checked").length==0)
					return "授权商户至少选择一个";
			}
		}
		,"srvUser.suGroup":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvUser.suUsername":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "登录帐号不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "登录帐号最大长度为32个字符";
		}
		,"srvUser.suPassword":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "登录密码不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "登录密码最大长度为32个字符";
		}
		,"srvUser.suRealName":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "真实姓名不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "真实姓名最大长度为32个字符";
		}
		,"srvUser.suMobile":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "手机号码不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "手机号码最大长度为32个字符";
		}
		,"srvUser.suEmail":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "邮箱地址最大长度为32个字符";
		}
		,"srvUser.suShortcut":function(el){
		}
		,"srvUser.suAddTime":function(el){
		}
		,"srvUser.suLastTime":function(el){
		}
		,"srvUser.suLastIp":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "最后登录IP最大长度为32个字符";
		}
		,"srvUser.suStatus":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="SrvUser" id="userForm" name="userForm" target="jsoniframe" action="user.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写人员信息相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("suId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suId"))))&&true)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"suId"))))}}
	{{lz.set("suId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$suId}}
	<dl lz:if="{{suId_editable||suId_readonly}}" class="suId hidden " major  ref="suId">
		<dt>编　　号:</dt>
		<dd lz:if="{{suId_editable}}" input="hidden">
			<lz:block lz:if="{{srvUser$suId}}">
				{{srvUser$suId}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suId}}">
			<input type="hidden" value="{{lz.htm(srvUser.suId)}}" name="srvUser.suId" id="suId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suId">{{srvUser.suId}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suId$||srvUser.suId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suId}}
	{{lz.set("suHost_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suHost"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suHost"))))}}
	{{lz.set("suHost_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suHost}}
	<dl lz:if="{{suHost_editable||suHost_readonly}}" class="suHost   wider" major  ref="suHost">
		<dt>授权商户:</dt>
		<dd lz:if="{{suHost_editable}}" input="checkbox">
			<lz:block lz:if="{{srvUser$suHost}}">
				{{srvUser$suHost}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suHost}}">
				<div class='wide input'>&nbsp;
		 			<input type="hidden" value="#0#" name="srvUser.suHost" id="suHost"/>
					<label lz:for="{{suHost$items}}"><input type="checkbox" checked='{{lz.idin(srvUser.suHost,item.key)?"checked":""}}' value="#{{item.key}}#" name="srvUser.suHost" id="suHost"/>
					{{item.value}}&nbsp;&nbsp;&nbsp;</label>
				</div>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择人员信息的授权商户</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suHost_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="suHost">{{srvUser.suHost}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suHost$||srvUser.suHost)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suHost}}
	{{lz.set("suGroup_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suGroup"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suGroup"))))}}
	{{lz.set("suGroup_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suGroup}}
	<dl lz:if="{{suGroup_editable||suGroup_readonly}}" class="suGroup  " major  ref="suGroup">
		<dt>所属部门:</dt>
		<dd lz:if="{{suGroup_editable}}" input="tree">
			<lz:block lz:if="{{srvUser$suGroup}}">
				{{srvUser$suGroup}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suGroup}}">
		  			<select class="tree narrow"  id="suGroup" name="srvUser.suGroup" action="/admin/permissions/group.query.do?parenter={param}">
						<option value="{{lz.htm(srvUser.suGroup)}}">{{srvUser.suGroup$||srvUser.suGroup}}</option>
					</select>			  		
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择人员信息的所属部门</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suGroup_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suGroup">{{srvUser.suGroup}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/permissions/group.details.html?key=srvUser.suGroup}')">
			 {{lz.html(srvUser.suGroup$||srvUser.suGroup)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suGroup}}
	{{lz.set("suUsername_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suUsername"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suUsername"))))}}
	{{lz.set("suUsername_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suUsername}}
	<dl lz:if="{{suUsername_editable||suUsername_readonly}}" class="suUsername  " major  ref="suUsername">
		<dt>登录帐号:</dt>
		<dd lz:if="{{suUsername_editable}}" input="text">
			<lz:block lz:if="{{srvUser$suUsername}}">
				{{srvUser$suUsername}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suUsername}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvUser.suUsername" id="suUsername"  value="{{lz.htm(srvUser.suUsername)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入人员信息的登录帐号</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suUsername_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suUsername">{{srvUser.suUsername}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suUsername$||srvUser.suUsername)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suUsername}}
	{{lz.set("suPassword_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suPassword"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suPassword"))))}}
	{{lz.set("suPassword_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suPassword}}
	<dl lz:if="{{suPassword_editable||suPassword_readonly}}" class="suPassword  " major  ref="suPassword">
		<dt>登录密码:</dt>
		<dd lz:if="{{suPassword_editable}}" input="password">
			<lz:block lz:if="{{srvUser$suPassword}}">
				{{srvUser$suPassword}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suPassword}}">
		 	<input type="password" class="input narrow"  maxlength="32" name="srvUser.suPassword" id="suPassword"  value=""/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入人员信息的登录密码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suPassword_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suPassword">{{srvUser.suPassword}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suPassword$||srvUser.suPassword)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suPassword}}
	{{lz.set("suRealName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suRealName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suRealName"))))}}
	{{lz.set("suRealName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suRealName}}
	<dl lz:if="{{suRealName_editable||suRealName_readonly}}" class="suRealName  " major  ref="suRealName">
		<dt>真实姓名:</dt>
		<dd lz:if="{{suRealName_editable}}" input="text">
			<lz:block lz:if="{{srvUser$suRealName}}">
				{{srvUser$suRealName}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suRealName}}">
		 	<input type="text" class="input narrow"   name="srvUser.suRealName" id="suRealName"  value="{{lz.htm(srvUser.suRealName)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入人员信息的真实姓名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suRealName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suRealName">{{srvUser.suRealName}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suRealName$||srvUser.suRealName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suRealName}}
	{{lz.set("suMobile_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suMobile"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suMobile"))))}}
	{{lz.set("suMobile_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suMobile}}
	<dl lz:if="{{suMobile_editable||suMobile_readonly}}" class="suMobile  " major  ref="suMobile">
		<dt>手机号码:</dt>
		<dd lz:if="{{suMobile_editable}}" input="text">
			<lz:block lz:if="{{srvUser$suMobile}}">
				{{srvUser$suMobile}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suMobile}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvUser.suMobile" id="suMobile"  value="{{lz.htm(srvUser.suMobile)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入人员信息的手机号码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suMobile_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suMobile">{{srvUser.suMobile}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suMobile$||srvUser.suMobile)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suMobile}}
	{{lz.set("suEmail_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suEmail"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suEmail"))))}}
	{{lz.set("suEmail_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suEmail}}
	<dl lz:if="{{suEmail_editable||suEmail_readonly}}" class="ribs suEmail  " major  ref="suEmail">
		<dt>邮箱地址:</dt>
		<dd lz:if="{{suEmail_editable}}" input="text">
			<lz:block lz:if="{{srvUser$suEmail}}">
				{{srvUser$suEmail}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suEmail}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvUser.suEmail" id="suEmail"  value="{{lz.htm(srvUser.suEmail)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入人员信息的邮箱地址</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suEmail_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suEmail">{{srvUser.suEmail}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suEmail$||srvUser.suEmail)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suEmail}}
	{{lz.set("suShortcut_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suShortcut"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"suShortcut"))))}}
	{{lz.set("suShortcut_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suShortcut}}
	<dl lz:if="{{suShortcut_editable||suShortcut_readonly}}" class="suShortcut   wider" minor  ref="suShortcut">
		<dt>快捷方式:</dt>
		<dd lz:if="{{suShortcut_editable}}" input="checkbox">
			<lz:block lz:if="{{srvUser$suShortcut}}">
				{{srvUser$suShortcut}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suShortcut}}">
			 		<div class='wide input'>
			 			<label style='display: inline-block;' lz:for="{{suShortcut$items}}"><input type="checkbox" value="{{item.key}}" name="srvUser.suShortcut" id="suShortcut" checked='{{lz.idin(srvUser.suShortcut,item.key)?"checked":""}}'/>{{item.value}}&nbsp;&nbsp;&nbsp;</label>
			 		</div>
	 	 </lz:block>
	 	 
	 	 <em>请选择人员信息的快捷方式</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suShortcut_readonly}}">
		 	<div class="state-input wide">
		 		<textarea class=""  style="display:none;" id="suShortcut">{{srvUser.suShortcut}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suShortcut$||srvUser.suShortcut)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suShortcut}}
	{{lz.set("suAddTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suAddTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"suAddTime"))))}}
	{{lz.set("suAddTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suAddTime}}
	<dl lz:if="{{suAddTime_editable||suAddTime_readonly}}" class="suAddTime  " minor  ref="suAddTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{suAddTime_editable}}" input="date">
			<lz:block lz:if="{{srvUser$suAddTime}}">
				{{srvUser$suAddTime}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suAddTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="srvUser.suAddTime" id="suAddTime"  value="{{srvUser.suAddTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择人员信息的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suAddTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suAddTime">{{srvUser.suAddTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suAddTime$||srvUser.suAddTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suAddTime}}
	{{lz.set("suLastTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suLastTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"suLastTime"))))}}
	{{lz.set("suLastTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suLastTime}}
	<dl lz:if="{{suLastTime_editable||suLastTime_readonly}}" class="suLastTime  " minor  ref="suLastTime">
		<dt>最后登录时间:</dt>
		<dd lz:if="{{suLastTime_editable}}" input="date">
			<lz:block lz:if="{{srvUser$suLastTime}}">
				{{srvUser$suLastTime}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suLastTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="srvUser.suLastTime" id="suLastTime"  value="{{srvUser.suLastTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择人员信息的最后登录时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suLastTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suLastTime">{{srvUser.suLastTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suLastTime$||srvUser.suLastTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suLastTime}}
	{{lz.set("suLastIp_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suLastIp"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"suLastIp"))))}}
	{{lz.set("suLastIp_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suLastIp}}
	<dl lz:if="{{suLastIp_editable||suLastIp_readonly}}" class="suLastIp  " minor  ref="suLastIp">
		<dt>最后登录IP:</dt>
		<dd lz:if="{{suLastIp_editable}}" input="text">
			<lz:block lz:if="{{srvUser$suLastIp}}">
				{{srvUser$suLastIp}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suLastIp}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvUser.suLastIp" id="suLastIp"  value="{{lz.htm(srvUser.suLastIp)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入人员信息的最后登录IP</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suLastIp_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suLastIp">{{srvUser.suLastIp}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suLastIp$||srvUser.suLastIp)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suLastIp}}
	{{lz.set("suStatus_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"suStatus"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"suStatus"))))}}
	{{lz.set("suStatus_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$suStatus}}
	<dl lz:if="{{suStatus_editable||suStatus_readonly}}" class="suStatus  " major  ref="suStatus">
		<dt>状　　态:</dt>
		<dd lz:if="{{suStatus_editable}}" input="select">
			<lz:block lz:if="{{srvUser$suStatus}}">
				{{srvUser$suStatus}}
			</lz:block>
			<lz:block lz:if="{{!srvUser$suStatus}}">
		 	<select class="narrow" id="suStatus" name="srvUser.suStatus">
		 		<option value="">请选择</option>
				<option value="1" selected='{{srvUser.suStatus=="1"?"selected":""}}'>有效</option>
				<option value="0" selected='{{srvUser.suStatus=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择人员信息的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{suStatus_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="suStatus">{{srvUser.suStatus}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvUser.suStatus$||srvUser.suStatus)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$suStatus}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{srvUser.suId}}" name="srvUser.suId" id="suId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/permissions/user.edit.html?edittype=update&id={{srvUser.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteUser('{{srvUser.id}}','{{srvUser.suHost}}')">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/permissions/user.edit.html",document.title,"/admin//images/icons/20088256422879677806.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/permissions/user.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	/**
	* 删除人员信息
	**/
	function deleteUser(id,flag)
	{
		var dialog=top.$.dialog({
				html:"<span style='white-space:nowrap;'>确定要删除当前数据吗？</span>",
				title:"删除人员信息",
				modal: true,			
				onOk:function(){
					dialog.closeDialog();
					var url = "/admin/permissions/user.delete.do";
					var params = {id:id};
					var protocol = $.getAjax(url,params);
					if(protocol.message){
						top.$.toast(protocol.message);
					}
					if(protocol.success){
						caller.location.href=caller.location.href;		
					}
				}
		 });	
	}
</script>
</html>